#define _CRT_SECURE_NO_WARNINGS 1

#include <stdio.h>
#include<stdlib.h>
#include<assert.h>

int my_strlen(const char* str)
{
	int count = 0;
	assert(str != NULL);
	while (*str!= '\0')
	{
		str++;
		count++;
	}
	return count;
}

int main()
{
	char arr[] = "hello world";
	printf("%d\n", my_strlen(arr));
	system("pause");
	return 0;
}